import { createApp } from 'vue';
import { setupStore } from './store';
import { setupAssets } from './plugins';
import { Comment, Rate, DatePicker, Popup, Tag, Calendar, CalendarCard, Form, FormItem, Collapse, CollapseItem } from '@nutui/nutui-taro';
import { Noticebar } from '@nutui/nutui-taro'
import { IconFont } from '@nutui/icons-vue-taro'
import '@/assets/icon/iconfont.css'
// import { Popup } from '@nutui/nutui-taro';

// import { DatePicker, Popup } from '@nutui/nutui-taro';
// import lazyPlugin from 'vue3-lazy'
// import directivePlugin from '@/directivePlugin'
const App = createApp({
  onShow() {
    //
  }
  /** 入口组件不需要实现 render 方法，即使实现了也会被 taro 所覆盖 */
});


App.use(Comment);
App.use(IconFont);
App.use(Rate);
App.use(DatePicker);
App.use(Popup);
App.use(Noticebar);
App.use(Tag);
App.use(Calendar);
App.use(CalendarCard);
App.use(Form);
App.use(FormItem);
App.use(Collapse);
App.use(CollapseItem);
function setupApp() {
  /** 引入静态资源 */
  setupAssets();

  /** 挂载store */
  setupStore(App);
}

setupApp();

export default App;
